@import '../../styles/global.less';
// @radius: 8px;
// @color: #fff;
.k-message {
  box-sizing: border-box;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 300;
  .k-message-mask {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 300;
    top: 0;
    left: 0;
  }
  .k-message-inner {
    z-index: 300;
    font-size: 18px;
    box-sizing: content-box;
    line-height: 1.5;
    font-size: 20px;
    color: #fff;
    padding: 10px 16px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: inline-block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
  }
}

@keyframes msgIn {
  from {
    opacity: 0;
    margin-top: -50px;
  }
  to {
    opacity: 1;
    margin-top: 0;
  }
}

@keyframes msgOut {
  from {
    opacity: 1;
  }
  to {
    margin-top: -50px;
    opacity: 0;
  }
}

.k-message-slide-enter-active {
  animation: msgIn .3s ease;
}

.k-message-slide-leave-active {
  animation: msgOut .3s ease;
}